//入口文件
import Vue from 'vue'


//导入路由包
import VueRouter from 'vue-router'

Vue.use(VueRouter)
    //导入MUI的样式
import './lib/mui/css/mui.min.css'
import './lib/mui/css/icons-extra.css'

import MintUI from 'mint-ui'
import 'mint-ui/lib/style.css'
import APP from './App.vue'
Vue.use(MintUI)


import router from './router.js'

import VueResource from 'vue-resource'
Vue.use(VueResource)
Vue.http.options.root = 'http://vue.studyit.io';
//导入app根组件

import app from './App.vue'

import moment from 'moment'
//定义全局过滤器
Vue.filter('dataFormat', function(dataStr, pattern = "YYYY-MM-DD HH:mm:ss") {
    moment(dataStr).format(pattern)
})
var vm = new Vue({
    el: '#app',
    render: c => c(app),
    router
})